<div class="form-horizontal row searchLineWrap">
	<% if(hasPrivilegeUrl("/reviewUser/reviewAgencyList")){ %>
		<form id="reviewAgency" name="reviewAgency" action="${cxt!}/reviewUser/reviewAgencyList" method="post">
			<div class="col-md-12">
				<div class="row">
					<div class="col-md-5">
						<div class="form-group">
			 				<label  class="col-md-3 control-label">${_res["organization.name"]}:</label>
			         		<div class="col-md-9">
	          					<input type="text" class="form-control" name="organization.l_name" placeholder="${_res['organization.name']}" value="${paramMap['organization.l_name']}"/>
			         		</div>
			       		</div>
					</div>
					
					<div class="col-md-5">
						<div class="form-group">
			 				<label  class="col-md-3 control-label">${_res["system.startdate"]}:</label>
			         		<div class="col-md-9">
		            			<input type="text"  class="form-control layer-date laydate-icon" onclick="laydate()" name="applicantForm.gt_applicateDate" placeholder="${_res['system.startdate']}" value="${paramMap['applicantForm.gt_applicateDate']}"/>
			         		</div>
			       		</div>
					</div>
				</div>
			
				<div class="row">
					<div class="col-md-5">
						<div class="form-group">
							<label  class="col-md-3 control-label">${_res["customer.authenticationstatus"]}:</label>
			         		<div class="col-md-9">
		            			<#dict type="select"  name="applicantForm.f_status"  dictCode="REVIEW_STATUS" defaultValue="${paramMap['applicantForm.f_status']}"/>
			        		</div>
			       		</div>
					</div>
					
					<div class="col-md-5">
						<div class="form-group">
			 				<label  class="col-md-3 control-label">${_res["system.enddate"]}:</label>
			         		<div class="col-md-9">
		            			<input type="text"  class="form-control layer-date laydate-icon" onclick="laydate()" name="applicantForm.le_applicateDate"   placeholder="${_res['system.enddate']}" value="${paramMap['applicantForm.le_applicateDate']}"/>
			         		</div>
			       		</div>
					</div>
					
					<div class="col-md-2">
						<div class="form-group">
							<label  class="col-md-4 control-label"></label>
			         		<div class="col-md-8">
		          				<button type="button" class="btn btn-primary pull-lift" onclick="ajaxForm('content','reviewAgency')">
		          				<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
		          			</div>
		         		</div>
		       		</div>
				</div>
			</div>
		</form>
	<% } %>
</div>
<div class="row border-bottom white-bg page-heading ibox-content" id="listDiv">
	<table class="table table-bordered table-hover" id="list-table">
		<thead>
			<tr>
				<th>${_res["agency.review.agencyname"]}</th>
				<th>${_res["common.city"]}</th>
				<th>${_res["agency.review.staffquantity"]}</th>
				<th>${_res["user.review.applicantdate"]}</th>
				<th>${_res["user.review.processedDate"]}</th>
				<th>${_res["agency.review.mainbussiness"]}</th>
				<th>${_res["agency.review.buildyear"]}</th>
				<th>${_res["user.review.status"]}</th>
				<th>${_res["user.review.processor"]}</th>
			</tr>
		</thead>
		<tbody>
			<% for(record in splitPage.list){ %>
				<tr>
					<td style="background-color: rgb(255, 255, 255);">${record.showname!}</td>
					<td style="background-color: rgb(255, 255, 255);">${record.address1!}</td>
					<td style="background-color: rgb(255, 255, 255);">${record.employees!}</td>
					<td style="background-color: rgb(255, 255, 255);">${record.applicateDate!,dateFormat="yyyy-MM-dd HH:mm"}</td>
					<td style="background-color: rgb(255, 255, 255);">${record.processedDate!,dateFormat="yyyy-MM-dd HH:mm"}</td>
					<td style="background-color: rgb(255, 255, 255);">${record.primarybusiness!}</td>
					<td style="background-color: rgb(255, 255, 255);">${record.workyear!}</td>
					<td style="background-color: rgb(255, 255, 255);"><#dict type="lable"  value="${record.status!}"  dictCode="REVIEW_STATUS" /></td>
					<td style="background-color: rgb(255, 255, 255);">
						<% if(hasPrivilegeUrl("getAgencyDetail")){ %>
							<a title="view" href="javascript:void(0)" onClick="ajaxContent('/reviewUser/getAgencyDetail?id=${record.id!}/toUrl?toUrl=/realty/review/agencyReviewDetail.html');" >${_res["user.review.review"]}</a>&nbsp;&nbsp; 
						<% }if(record.organization_status! == "P"){ 
							  if(hasPrivilegeUrl("/reviewUser/preAgencyCheck")){ %>
								<a title="review" href="javascript:void(0)" onClick="ajaxContent('/reviewUser/preAgencyCheck?id=${record.organizationid!}&appId=${record.id!}/toUrl?toUrl=/realty/review/agencyReview.html');">${_res["user.review.check"]}</a>
						   <% } 
						}else if(record.organization_status! == "A"){ 
							if(hasPrivilegeUrl("organizationFreeze")){ %>
								<a title="review" href="javascript:void(0)" onClick="ajaxContent('/admin/organization/freeze/${record.organizationid!}')">${_res["system.freeze"]}</a>
						 <% }
						}else if(record.organization_status! == "F"){ 
						   if(hasPrivilegeUrl("organizationUnFreeze")){%>
							  <a title="review" href="javascript:void(0)" onClick="ajaxContent('/admin/organization/unfreeze/${record.organizationid!}')">${_res["system.unfreeze"]}</a>
						   <% } 
						} %>
					</td>
				</tr>
			<% } %>
		</tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="reviewAgency"  />
	</div>
	<#nav/>
</div>
